package cn.cnooc.entity;

/**
 * .反正数据状态码定义
 * 
 * @author HH
 *
 */
public enum Status {

	OK(200, "操作成功"), FAIL(400, "操作失败"), ERROR(500, "请求异常，请联系管理员！"), LOGGED(201, "已登录"), LOGOUT(401, "无效凭证，登出");

	private int code;
	private String msg;

	Status(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
